﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
using YooAsset;
namespace Panty.Test
{

    public struct SetDownLoadURL: ICmd<(EPlayMode, string, string )>
    {
        // 实现 Do 方法，执行命令操作，生成随机数并发送计算命令
        public void Do(IModuleHub hub, (EPlayMode, string, string) info)
        {
            hub.Module<IYooassetDownLoadModule>().PlayMode = info.Item1;
            hub.Module<IYooassetDownLoadModule>().defaultHostServer = info.Item2;
            hub.Module<IYooassetDownLoadModule>().fallbackHostServer = info.Item3;
            hub.Module<IYooassetDownLoadModule>().GotoDownload();
        }
    }


    public struct GetItmes : ICmd
    {
        // 实现 Do 方法，执行命令操作，生成随机数并发送计算命令
        public void Do(IModuleHub hub)
        {

        }
    }

    public struct ItmesQuery : IQuery<Dictionary<int, int>>
    {
        // 实现 Do 方法，执行计算命令，查询计算结果并发送计算事件
        public Dictionary<int, int> Do(IModuleHub hub)
        {
            
            return null;
        }
    }
}
